package com.example.Config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.EnvironmentAware;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.env.Environment;

/**
 * Created by Administrator on 2017/5/11.
 */
@Configuration
public class MyConfig implements EnvironmentAware {
    @Value("${spring.datasource.url}")
    private String MyUrl;
    @Override
    public void setEnvironment(Environment environment) {

    }
}
